﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="org.springframework.security.core.context.SecurityContextHolder"%>
<%@page import="com.bringway.global.domain.SysUserDetails"%>
<%
	SysUserDetails sysUserDetails = (SysUserDetails) SecurityContextHolder.getContext().getAuthentication()
			.getPrincipal();
	String gyh = "";
	String roleId = "";
	if (null != sysUserDetails) {
		gyh = sysUserDetails.getGyh();
		roleId = sysUserDetails.getRoleId();
	}
%>

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>红点e贷服务管理系统</title>
<jsp:include page="../../../global/assets_common.jsp" />
<style type="text/css">
.input-group .form-control{
	z-index:0;
}
body{
	font-size: 10px;
}
.required{color: red;}
.ui-widget-header{
	border: none;
}
.input-group {
	margin: 1px 0px;
	width: 300px;
}

#dialog_view .input-group-addon {
	width: 117px;
}
#dialog_view textarea {
	resize: none;
	height: 45px;
}

#dialog_update .input-group-addon {
	width: 117px;
}

#dialog_search .input-group-addon {
	width: 117px;
}
</style>
	</head>
	<body>
		<div id="toolbar" class="ui-widget-header ui-corner-all">
		<button id="btu_search">搜索</button>
		<button id="btu_view">查看</button>
		<button id="btu_ddqhqs">定点取货签收</button>
		<button id="btu_download">下载Excel</button>
	</div>
	<div>
		<table id="jqGrid"></table>
		<div id="jqGridPager"></div>
	</div>
		<!--提示框 开始-->
		<div id="dialog_alert" title="提示" class="row ui-helper-hidden"></div>
		<!--提示框结束-->
		<!--搜索模态框 开始-->
	<div id="dialog_search" title="查询搜索" class="row ui-helper-hidden">
		<form class="form-inline"  id="form_search">
			<div class="input-group input-group-sm">
				<span class="input-group-addon">用户名:</span>
				<input type="text" id="s_yhm" name="yhm" class="form-control"/>
			</div>

			<div class="input-group input-group-sm">
				<span class="input-group-addon">订单号:</span>
				<input type="text" id="s_ddh" name="ddh" class="form-control"/>
			</div>
			<div class="input-group input-group-sm">
				<span class="input-group-addon">订单状态:</span>
					<select  id="s_ddzt" name="ddzt" class="form-control">
						<option value="01">支付完成</option>
						<option value="02">交易完成</option>
					</select>
			</div>
			<div class="input-group input-group-sm">
				<span class="input-group-addon">配送方式:</span>
					<select  id="s_psfs" name="psfs" class="form-control">
						<option value="01">定点取货</option>
					</select>
			</div>
			<div class="input-group input-group-sm">
				<span class="input-group-addon">订单开始时间:</span>
				<input type="text" id="s_minddsj" name="startDate" class="form-control" readonly="readonly"/>
			</div>
			<div class="input-group input-group-sm">
				<span class="input-group-addon">订单结束时间:</span>
				<input type="text" id="s_maxddsj" name="endDate" class="form-control"readonly="readonly"/>
			</div>
		</form>
	</div>
	<!--搜索模态框 结束-->
	<!--查看模态框 开始-->
	<div id="dialog_view" title="查看信息"  class="ui-helper-hidden">
					<form class="form-inline" >
							<div class="input-group input-group-sm">
									<span class="input-group-addon">用户名:</span>
									<input type="text" id="v_user_name"  class="form-control"  readonly="readonly">
							</div>
							<div class="input-group input-group-sm">
									<span class="input-group-addon">订单编号:</span>
									<input type="text" id="v_order_bh"  class="form-control"  readonly="readonly">
							</div>
							<div class="input-group input-group-sm">
									<span class="input-group-addon">配送方式:</span>
									<input type="text" id="v_zf_type"  class="form-control"  readonly="readonly">
							</div>
							<div class="input-group input-group-sm">
									<span class="input-group-addon">订单金额:</span>
									<input type="text" id="v_real_je"  class="form-control"  readonly="readonly">
							</div>
							<div class="input-group input-group-sm">
									<span class="input-group-addon">订单状态:</span>
									<input type="text" id="v_order_state"  class="form-control"  readonly="readonly">
							</div>
							<div class="input-group input-group-sm">
									<span class="input-group-addon">买家留言:</span>
									<input type="text" id="v_message"  class="form-control " readonly="readonly">
							</div>
							<div class="input-group input-group-sm">
									<span class="input-group-addon">创建时间:</span>
									<input type="text" id="v_create_date"   class="form-control " readonly="readonly">
							</div>
							<div class="input-group input-group-sm">
									<span class="input-group-addon">推荐人(员工号):</span>
									<input type="text" id="v_tjr"  class="form-control"  readonly="readonly">
							</div>
							<div class="input-group input-group-sm">
									<span class="input-group-addon">推荐级别:</span>
									<input type="text" id="v_tjdj"  class="form-control"  readonly="readonly">
							</div>
							<div class="input-group input-group-sm">
									<span class="input-group-addon">推荐人所在公司:</span>
									<input type="text" id="v_dq"  class="form-control"  readonly="readonly">
							</div>
							<div class="input-group input-group-sm">
									<span class="input-group-addon">办理签收人:</span>
									<input type="text" id="v_qsr_user_name" class="form-control"  readonly="readonly">
							</div>
							<div class="input-group input-group-sm">
									<span class="input-group-addon">办理签收时间:</span>
									<input type="text" id="v_qs_date" class="form-control"  readonly="readonly">
							</div>
						</form>
						<div>
							<table id="jqGridV"></table>
						</div>
			</div>
	<!--修改模态框 结束-->
	
	<!--签收模块  -->
	
	<div id="dialog_update" title="签收单" class="ui-helper-hidden">
		<form class="form-inline"  id="form_update">
						<div class="input-group input-group-sm">
								<span class="input-group-addon">买家用户名:<span class="required">*</span></span>
								<input type="text" id="u_user_name" name="yhm" class="form-control"  readonly="readonly">
						</div>
						<div class="input-group input-group-sm">
								<span class="input-group-addon">订单编号:<span class="required">*</span></span>
								<input type="text" id="u_order_bh" name="orderbh" class="form-control"  readonly="readonly">
						</div>
						<div class="input-group input-group-sm">
								<span class="input-group-addon">订单状态:<span class="required">*</span></span>
								<input type="text" id="u_order_state" name="ddzt" class="form-control"  readonly="readonly">
						</div>
							<div class="input-group input-group-sm">
								<span class="input-group-addon">订单金额:<span class="required">*</span></span>
								<input type="text" id="u_real_je" name="ddje" class="form-control"  readonly="readonly">
						</div>
						<div class="input-group input-group-sm">
								<span class="input-group-addon">买家留言:<span class="required">*</span></span>
								<input type="text" id="u_message"  name="mjly" class="form-control " readonly="readonly">
						</div>
						<div class="input-group input-group-sm">
								<span class="input-group-addon">创建时间:<span class="required">*</span></span>
								<input type="text" id="u_create_date"  name="cjsj" class="form-control " readonly="readonly">
						</div>
						<div class="input-group input-group-sm">
								<span class="input-group-addon">签收人(员工号):<span class="required">*</span></span>
								<input type="text" id="u_qsrygh" name="qsr" class="form-control"  readonly="readonly" value="<%=gyh%>">
						</div>
						<div class="input-group input-group-sm">
								<span class="input-group-addon">签收时间:<span class="required">*</span></span>
								<input type="text" id="u_qssj" name="qssj" class="form-control"  readonly="readonly">
						</div>
					<input type="hidden" id="u_id" name="u_id">
			</form>
	</div>
	<!--修改模态框 结束-->
	
	
</body>
<script src="${basePath}/global/js/assets/p2p.dqsc.orderYoujia.js"></script>
</html>